package com.thiswhyme.seata.order.feign;

import com.thiswhyme.common.response.ResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: thiswhyme
 * @date: 2020/9/4
 */
@FeignClient("seata-account")
public interface AccountFeignService {

    @PostMapping("/account/reduceBalance")
    ResponseVo<Boolean> reduceBalance(@RequestParam("userId") Long userId, @RequestParam("price") Integer price);
}
